const path = require( 'path' );
module.exports = {
    entry: './src/index.ts', // 入口文件
    output: {
        path: path.resolve( __dirname, 'dist'),
        filename: 'bundle.js'
    },

    module: {
        rules: [
            { 
              test: /\.tsx?$/, 
              loader: "ts-loader",
              exclude : path.resolve( __dirname, 'node_modules/' ), // 排除文件 
            }
        ]
      }
}